package priv.yiyuan.example.composite;

/**
 * 生成器接口
 * <p>
 * 生成器模式 生成器
 *
 * @author YiYuan
 * @data 2025/8/28
 * @apoNote
 */
public interface DocumentBuilder {

    DocumentBuilder addHeading(String text, int level);

    DocumentBuilder addParagraph(String text);

    DocumentBuilder addComposite(DocumentComponent composite);

    DocumentComponent build();
}
